import request from "@/config/request";

// 登录API
// export const getRepairList = (params) => {
//   return request({
//     url: '/admin/repair',
//     method: 'GET',
//     params, // 修正：GET请求使用params传递参数
//   });
// };    

export const getRepairList = (params) => {
  return request.get('/admin/repair', { params });
};  


export const updateRepairStatus = (repairId, status) => {
  return request.post(`/admin/handle/${repairId}/status`, { status });
};

export const informationPublish = (data) => {
  return request({
    url: '/admin/notice',
    method: 'POST',
    data,
  });
};


export const getClassmateEvaluations  = (params) => {
  return request({
    url: '/admin/classmateevaluation',
    method: 'GET',
    params: {
      ...params,
    }
  });
};
